import { request } from 'umi';

/**
 *   1、获取学生列表信息接口
 * @returns
 */
export const stuGetListApi = () => {
  return request('/class/stu', {
    method: 'GET',
  });
};

/**
 * 2、学生列表删除接口
 * @param {string} id
 */

export const stuDeleteApi = (id) => {
  // return  request(`/class/stu?id=${id}`)  也可以像下面一样写
  return request('/class/stu?id=' + id, {
    method: 'DELETE',
  });
};
